package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.entity.Announcement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.po.AnnouncementPo;
import com.itheima.query.AnnouncementPageQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author guanhuaer
 * @since 2024-09-05
 */
@Mapper
public interface AnnouncementMapper extends BaseMapper<Announcement> {

    Page<AnnouncementPo> cementPage(AnnouncementPageQuery cementPageQuery);

    Announcement selectTitle(String title);

    void insert(AnnouncementPo cementPo);

    void updateById(AnnouncementPo cementPo);

    void Deldect(Integer id);

    void updateId(AnnouncementPo cementPo);

    List<Announcement> selectAll();

}
